package org.csu.dormmonitor.common;

import lombok.Getter;

/**
 * @author huangzhangyan
 */
@Getter
public enum ResponseCode {

    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    NEED_LOGIN(10, "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(3, "ILLEGAL_ARGUMENT");


    private final int code;

    private final String description;
     //响应应答码
    ResponseCode(int code, String description) {
        this.code = code;
        this.description = description;
    }
}
